package com.service.tools.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.service.tools.entity.ToolUser;
import com.service.tools.mapper.ToolUserMapper;
import com.service.tools.service.IToolUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author tzq
 * @since 2025-11-06
 */
@Service
public class ToolUserServiceImpl extends ServiceImpl<ToolUserMapper, ToolUser> implements IToolUserService {

    @Override
    public ToolUser getByUserName(String username) {
        QueryWrapper<ToolUser> user = new QueryWrapper<>();
        user.eq("user_name", username);
        return getOne(user, false);
    }
}
